package com.ruoyi.jiaopei.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程业务对象 tb_curriculum
 *
 * @author macy
 * @date 2024-04-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TbCurriculumBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 课时
     */
    @NotNull(message = "课时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal lessonHours;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { EditGroup.class })
    private Date createdDate;


}
